﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Counter.Page"
 EnableViewState="false"

 %>

<!doctype html>
<html>
<head runat="server">
    <title>被访问页面统计(前20位)</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    

    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <link href="Counter.css" rel="stylesheet" type="text/css">
    
 

    <script type="text/javascript" src="Counter.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <table id="NavigationPath">
        <tr>
            <td>
                
                <asp:Label ID="lblPath" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound"
        Width="786px"  GridLines="None" CssClass="table table-bordered table-condensed table-hover">
        <Columns>
            <asp:HyperLinkField HeaderText="访问页(前20位)" DataTextField="Page" />
            <asp:BoundField HeaderText="访问时间 " DataField="MaxTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}">
                <ItemStyle Width="120px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="访问统计">
                <ItemStyle Width="180px" />
                <ItemTemplate>
                         <div class="Counter_Column1"><div class="Counter_Column2" id="Bar<%# DataBinder.Eval(Container, "RowIndex") %>"></div></div>
                        <script> PercentChange(<%# Eval("Count") %>,<%= AllCount %>,'Bar<%# DataBinder.Eval(Container, "RowIndex") %>'); </script>
                    </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="HeaderStyle" />
    </asp:GridView>
    </form>
</body>
</html>
